import { Layout } from '@fl/utils/routerHelper'

const productCenter: AppRouteRecordRaw = {
    children: [
        {
            component: () => import('@/operations-pages/product-center/product-list/index.vue'),
            meta: {
                title: '产品列表',
            },
            name: 'product-list',
            path: 'product-list',
        },
        {
            component: () => import('@/operations-pages/product-center/product-list/log.vue'),
            meta: {
                activeMenu: '/operations-pages/product-center/product-list',
                hidden: true,
                noTagsView: true,
                title: '产品日志',
            },
            name: 'product-log',
            path: 'product-log',
        },
        {
            component: () => import('@/operations-pages/product-center/product-list/detail.vue'),
            meta: {
                activeMenu: '/operations-pages/product-center/product-list',
                hidden: true,
                noTagsView: true,
                title: '审核详情',
            },
            name: 'audit-detail',
            path: 'audit-detail',
        },
        {
            component: () => import('@/operations-pages/product-center/category/index.vue'),
            meta: {
                title: '类目管理',
            },
            name: 'category',
            path: 'category',
        },
        {
            component: () => import('@/operations-pages/product-center/brand/index.vue'),
            meta: {
                title: '品牌管理',
            },
            name: 'brand',
            path: 'brand',
        },
        {
            component: () => import('@/operations-pages/product-center/product-report/index.vue'),
            meta: {
                title: '产品报告',
            },
            name: 'product-report',
            path: 'product-report',
        },
    ],
    component: Layout,
    meta: {
        alwaysShow: true,
        title: '产品中心',
    },
    name: 'product-center',
    path: 'product-center',
}

export default productCenter
